import numpy as np
import matplotlib.pyplot as plt

phase = [0.1, 0.2, 0.3, 0.4]

origin = [8.15, 16.2, 24.2, 32]
afterDt = [5.7, 11.5, 17, 22.9]

# 绘制原波形在一幅图中，一条红色，一条黄色
plt.figure(figsize=(12, 6))
plt.plot(phase, origin, 'r', label='origin')
plt.plot(phase, afterDt, 'y', label='afterDt')
plt.title('phaseResult diff')
plt.xlabel('phase')
plt.ylabel('phaseDif')
plt.legend()
plt.grid(True)
plt.show()